class BookNotFoundException (Exception):
    def __init__(self, maintype = "", subtype = "", errstring = ""):
        self.maintype = maintype
        self.subtype = subtype
        self.errstring = errstring

    def __str__(self):
        return str(self.maintype) + ":" + str(self.subtype) + ":" + str(self.errstring)
